package com.zhuang.dao.impl;

import com.zhuang.dao.UserDao;

/**
 * @Classname UserDapImpl
 * @Description 用一句话描述类的作用
 * @Date 2021/4/1 15:36
 * @Created by dell
 */

public class UserDapImpl implements UserDao {

    private String name;
    private String password;

    public UserDapImpl() {
    }

    public UserDapImpl(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserDapImpl{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    @Override
    public void add() {
        System.out.println("userDaoImpl...被调用了");
        System.out.println("姓名-->"+name);
        System.out.println("密码-->"+password);
    }
}
